<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jspf"%>
<!DOCTYPE html>
<html>
<head>
    <title>updateFile.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
<link rel="stylesheet" type="text/css" href="${proPath }/css/bootstrap.min.css">
<script type="text/javascript" src="${proPath }/js/jquery.min.js"></script>
<script type="text/javascript" src="${proPath }/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${proPath }/js/bootstrap-treeview.js"></script>
<script type="text/javascript" src="${proPath }/js/jquery-form.js"></script>
<script type="text/javascript" src="${proPath }/js/bootbox.js"></script>
</head>
<body>

<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-label="Close">
			<span aria-hidden="true">&times;</span>
		</button>
		<h4 class="modal-title">修改文件</h4>
	</div>
	<form enctype="multipart/form-data" method="POST" id="updatefileForm" action="">
		<div class="modal-body">
			<div class="row">
			  <div class="col-md-12">
				 <div class="form-group">
				    <label for="updateFileName">修改名称 </label>
				    <input name="id" value="${fileManager.id }" type="hidden"></input>
				    <input name="oldFileName" value="${fileManager.fileName }" type="hidden"></input>
				    <input name="parentStrCn" value="${fileManager.parentStrCn }" type="hidden"></input>
				    <input name="parentId" value="${fileManager.parentId }" type="hidden"></input>
				    <input class="form-control" id="updateFileName" name="fileName" required="required" maxlength="64" value="${fileManager.fileName }" placeholder="我是名称"></input>
			  	</div>
			  </div>
			   <div class="col-md-12">
			  	<div class="form-group">
				    <label for="updateRemarks">备注</label>
				    <input class="form-control" type="text" id="updateRemarks" name="remarks" maxlength="150" value="${fileManager.remarks }" placeholder="我是150字以内的备注..."/>
				 </div>
			  </div>
			</div>	
			<div class="row">
			  <div class="col-md-6">
			  <div class="form-group">
				    <label for="updateSysType">系统类型 </label>
				    <select class="form-control" id="updateSysType" name="sysType">
				    	<option value="">请选择</option>
				    	<c:forEach items="${spdList}" var="sysType">
				    		<c:if test="${sysType.type==1 }">
				    			<c:if test="${sysType.name == fileManager.sysType }">
						       		<option value="${sysType.name }" selected>${sysType.name }</option>
						       	</c:if>
						      	<c:if test="${sysType.name != fileManager.sysType }">
						       		<option value="${sysType.name }" >${sysType.name }</option>
						       	</c:if>
						    </c:if>
						</c:forEach> 
				    </select>
			  </div>
			  </div>
			  
		  <div class="col-md-6">
			  <div class="form-group">
				    <label for="updateProductName">产品名称</label>
				    <select  class="form-control" id="updateProductName" name="productName">
				    	<option value="">请选择</option>
				    	<c:forEach items="${spdList}" var="productName">
				    		<c:if test="${productName.type==2 }">
				    			<c:if test="${productName.name == fileManager.productName }">
						       		<option value="${productName.name }" >${productName.name }</option>
						       	</c:if>
						       	<c:if test="${productName.name != fileManager.productName }">
						       		<option value="${productName.name }" >${productName.name }</option>
						       	</c:if>
						    </c:if>
						</c:forEach> 
				    </select>
				  </div>
			  </div>
			</div>
			
			<div class="row">
			  <div class="col-md-6">
			  <div class="form-group">
				    <label for="updateProductType">产品类型 </label>
				    <select class="form-control" id="updateProductType" name="productType">
				    	<option value="">请选择</option>
				    	<c:forEach items="${spdList}" var="productType">
				    		<c:if test="${productType.type==3 }">
				    			<c:if test="${productType.name == fileManager.productType }">
						       		<option value="${productType.name }" >${productType.name }</option>
						       	</c:if>
						       	<c:if test="${productType.name != fileManager.productType }">
						       		<option value="${productType.name }" >${productType.name }</option>
						       	</c:if>
						    </c:if>
						</c:forEach> 
				    </select>
				  </div>
			  </div>
			  <div class="col-md-6">
			  <div class="form-group">
				    <label for="updateSpecialNum">特殊单编号 </label>
						<select class="form-control" id="updateSpecialNum" name="specialNum">
					    	<option value="">请选择</option>
					    	<c:forEach items="${spdList}" var="specialNum">
					    		<c:if test="${specialNum.type==9 }">
					    			<c:if test="${specialNum.name == fileManager.specialNum }">
							       		<option value="${specialNum.name }" selected>${specialNum.name }</option>
							       	</c:if>
							       	<c:if test="${specialNum.name != fileManager.specialNum }">
							       		<option value="${specialNum.name }">${specialNum.name }</option>
							       	</c:if>
							    </c:if>
							</c:forEach>
					    </select>
				  </div>
			  </div>
			</div>
			<div class="row">
			  <div class="col-md-6">
			  <div class="form-group">
				    <label for="updateProductModel">产品型号 </label>
				    <select class="form-control" id="updateProductModel" name="productModel">
				    	<option value="">请选择</option>
				    	<c:forEach items="${spdList}" var="productModel">
				    		<c:if test="${productModel.type==4 }">
				    			<c:if test="${productModel.name == fileManager.productModel}">
						       		<option value="${productModel.name }" selected>${productModel.name }</option>
						       	</c:if>
						       	<c:if test="${productModel.name != fileManager.productModel }">
						       		<option value="${productModel.name }">${productModel.name }</option>
						       	</c:if>
						    </c:if>
						</c:forEach>
				    </select>
				  </div>
			  </div>
			  <div class="col-md-6">
			  <div class="form-group">
				    <label for="updateUploadUser">上传人员</label>
				    <select class="form-control" id="updateUploadUser" name="uploadUser">
				    	<option value="">请选择</option>
				    	<c:forEach items="${spdList}" var="uploadUser">
					    	<c:if test="${uploadUser.type==10 }">
				    			<c:if test="${uploadUser.name == fileManager.uploadUser }">
						       		<option value="${uploadUser.name }" selected>${uploadUser.name }</option>
						       	</c:if>
						       	<c:if test="${uploadUser.name != fileManager.uploadUser }">
						       		<option value="${uploadUser.name }">${uploadUser.name }</option>
						       	</c:if>
							</c:if>
						</c:forEach>
					</select>
				  </div>
			  </div>
			</div>
			<div class="row">
			  <div class="col-md-6">
			  <div class="form-group">
				    <label for="updateUsageScenarios">使用场景</label>
				    <select class="form-control" id="updateUsageScenarios" name="usageScenarios">
				    	<option value="">请选择</option>
				    	<c:forEach items="${spdList}" var="usageScenarios">
					    	<c:if test="${usageScenarios.type==5 }">
					    			<c:if test="${usageScenarios.name == fileManager.usageScenarios }">
							       		<option value="${usageScenarios.name }" selected>${usageScenarios.name }</option>
							       	</c:if>
							       	<c:if test="${usageScenarios.name != fileManager.usageScenarios }">
							       		<option value="${usageScenarios.name }">${usageScenarios.name }</option>
							       	</c:if>
							</c:if>
						</c:forEach>
				    </select>
				  </div>
			  </div>
			  <div class="col-md-6">
			  <div class="form-group">
				    <label for="updateDocumentType">文档类型 </label>
				    <select class="form-control" id="updateDocumentType" name="documentType">
				    	<option value="">请选择</option>
				    	<c:forEach items="${spdList}" var="documentType">
					    	<c:if test="${documentType.type==6 }">
					    			<c:if test="${documentType.name == fileManager.documentType }">
							       		<option value="${documentType.name }" selected>${documentType.name }</option>
							       	</c:if>
							       	<c:if test="${documentType.name != fileManager.documentType }">
							       		<option value="${documentType.name }">${documentType.name }</option>
							       	</c:if>
							</c:if>
						</c:forEach>
				    </select>
				  </div>
			  </div>
			</div>
			<div class="row">
			  <div class="col-md-6">
			  <div class="form-group">
				    <label for="updateVersion">文档版本 </label>
				    <select class="form-control" id="updateVersion" name="version">
				    	<option value="">请选择</option>
				    	<c:forEach items="${spdList}" var="version">
					    	<c:if test="${version.type==7 }">
					    			<c:if test="${version.name == fileManager.version }">
							       		<option value="${version.name }" selected>${version.name }</option>
							       	</c:if>
							       	<c:if test="${version.name != fileManager.version }">
							       		<option value="${version.name }">${version.name }</option>
							       	</c:if>
							</c:if>
						</c:forEach>
				    </select>
				  </div>
			  </div>
			  <div class="col-md-6">
			  <div class="form-group">
				    <label for="updateMateriel">物料编号</label>
				    <select class="form-control" id="updateMateriel" name="materiel">
				    	<option value="">请选择</option>
				    	<c:forEach items="${spdList}" var="materiel">
					    	<c:if test="${materiel.type==8 }">
					    			<c:if test="${materiel.name == fileManager.materiel }">
							       		<option value="${materiel.name }" selected>${materiel.name }</option>
							       	</c:if>
							       	<c:if test="${materiel.name != fileManager.materiel }">
							       		<option value="${materiel.name }">${materiel.name }</option>
							       	</c:if>
							</c:if>
						</c:forEach>
				    </select>
				  </div>
			  </div>
			   
			  
			</div>
		</div>
		<div class="modal-footer">
			<div class="col-md-6">
 					<button type="button" onclick="updatefileFormSubmit()" class="btn btn-primary btn-block">保存</button>
 				</div>
			<div class="col-md-6">
				<button type="button" class="btn btn-primary btn-block" data-dismiss="modal">取消</button>
			</div>
		</div>
	</form>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->

</body>

</html>
